package com.ruoyi.supplier.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 供应商对象 tb_supplier
 * 
 * @author ruoyi
 * @date 2021-02-16
 */
public class TbSupplier extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 供应商表 */
    private Long id;

    /** 供应商编码 */
    @Excel(name = "供应商编码")
    private String supplierCode;

    /** 供应商名称 */
    @Excel(name = "供应商名称")
    private String supplierName;

    /** 法人 */
    @Excel(name = "法人")
    private String legalPerson;

    /** 税务编码 */
    @Excel(name = "税务编码")
    private String taxCode;

    /** 地址 */
    @Excel(name = "地址")
    private String address;

    /** 联系人 */
    @Excel(name = "联系人")
    private String contactPerson;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phone;

    /** 固定电话 */
    @Excel(name = "固定电话")
    private String landline;

    /** 评级 */
    @Excel(name = "评级")
    private Long supplierGrade;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSupplierCode(String supplierCode) 
    {
        this.supplierCode = supplierCode;
    }

    public String getSupplierCode() 
    {
        return supplierCode;
    }
    public void setSupplierName(String supplierName) 
    {
        this.supplierName = supplierName;
    }

    public String getSupplierName() 
    {
        return supplierName;
    }
    public void setLegalPerson(String legalPerson) 
    {
        this.legalPerson = legalPerson;
    }

    public String getLegalPerson() 
    {
        return legalPerson;
    }
    public void setTaxCode(String taxCode) 
    {
        this.taxCode = taxCode;
    }

    public String getTaxCode() 
    {
        return taxCode;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setContactPerson(String contactPerson) 
    {
        this.contactPerson = contactPerson;
    }

    public String getContactPerson() 
    {
        return contactPerson;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setLandline(String landline) 
    {
        this.landline = landline;
    }

    public String getLandline() 
    {
        return landline;
    }
    public void setSupplierGrade(Long supplierGrade) 
    {
        this.supplierGrade = supplierGrade;
    }

    public Long getSupplierGrade() 
    {
        return supplierGrade;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("supplierCode", getSupplierCode())
            .append("supplierName", getSupplierName())
            .append("legalPerson", getLegalPerson())
            .append("taxCode", getTaxCode())
            .append("address", getAddress())
            .append("contactPerson", getContactPerson())
            .append("phone", getPhone())
            .append("landline", getLandline())
            .append("supplierGrade", getSupplierGrade())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
